<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>数据看板</title>

    <!-- Bootstrap -->
    <link href="$!{__beat.server.contextPath}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="$!{__beat.server.contextPath}/css/dashboard.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<!-- 上方导航 -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" id="tree">
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="height:2000px">
            <iframe id="frame_container" src="$!{__beat.server.contextPath}/homePage/netflow" height="100%" width="100%" frameborder="0"></iframe>
        </div>
    </div>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="$!{__beat.server.contextPath}/bootstrap/js/libs/jquery-1.9.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="$!{__beat.server.contextPath}/bootstrap/bootstrap-treeview.min.js"></script>
<script type="text/javascript">
$('#tree').treeview({
	data: [
        {
            text: "城市首页",
            href: "$!{__beat.server.contextPath}/homePage/income",
            nodes: [
                {
                    text: "AB测实时数据",
                    href: "$!{__beat.server.contextPath}/realtime/netflow/ab_test"
                },
                {
                    text: "url实时数据",
                    href: "$!{__beat.server.contextPath}/realtime/netflow/url"
                },
                {
                    text: "special实时数据",
                    href: "$!{__beat.server.contextPath}/realtime/netflow/special"
                },
                {
                    text: "余额客户结构",
                    href: "$!{__beat.server.contextPath}/homePage/income"
                },
                {
                    text: "自然流量",
                    href: "$!{__beat.server.contextPath}/homePage/netflow"
                },
                {
                    text: "信息量和业绩",
                    href: "$!{__beat.server.contextPath}/homePage/info"
                },  
                {
                    text: "进销存",
                    href: "$!{__beat.server.contextPath}/homePage/inventory"
                }  
            ]
        },  
        {
            text: "万年历看板",
            href: "$!{__beat.server.contextPath}/calendar/festival_city",
            nodes: [
                {
                    text: "节日城市数据",
                    href: "$!{__beat.server.contextPath}/calendar/festival_city"
                },
                {
                    text: "节日来源数据",
                    href: "$!{__beat.server.contextPath}/calendar/festival_source"
                 },
                {
                    text: "淡旺季城市数据",
                    href: "$!{__beat.server.contextPath}/calendar/season_city"
                 },
                {
                    text: "淡旺季来源数据",
                    href: "$!{__beat.server.contextPath}/calendar/season_source"
                }                   
            ]
        },      
        {
            text: "实时数据",
            href: "$!{__beat.server.contextPath}/realtimeTMP/netflow",
            nodes: [
                {
                    text: "新旧机房实时流量",
                    href: "$!{__beat.server.contextPath}/realtimeTMP/netflow"
                }              
            ]
        },    
        {
            text: "简历看板",
            href: "$!{__beat.server.contextPath}/resume/totalData",
            nodes: [
                {
                    text: "简历基础数据",
                    href: "$!{__beat.server.contextPath}/resume/totalData"
                },   
                {
                    text: "简历流动数据",
                    href: "$!{__beat.server.contextPath}/resume/resumeFlow"
                },
                {
                    text: "简历供应",
                    href: "$!{__beat.server.contextPath}/resume/resumeProvision"
                },               
                {
                    text: "简历销售收入",
                    href: "$!{__beat.server.contextPath}/resume/resumeIncome"
                }                 
            ]
        },

        {
            text: "信息看板",
            href: "$!{__beat.server.contextPath}/info/trend",
            nodes: [
                {
                    text: "信息量趋势",
                    href: "$!{__beat.server.contextPath}/info/trend"
                },               
                {
                    text: "信息来源",
                    href: "$!{__beat.server.contextPath}/info/infoSource"
                },               
                {
                    text: "简历新增",
                    href: "$!{__beat.server.contextPath}/info/resume"
                },               
                {
                    text: "发布成功率",
                    href: "$!{__beat.server.contextPath}/info/postRate"
                }
            ]        
        },
        {
		text: "流量",
		href: "$!{__beat.server.contextPath}/netflow/trend",
		nodes: [{
			text: "看板",
			href: "$!{__beat.server.contextPath}/netflow/trend"
		},
		{
            text: "访问路径（品类）",
            href: "$!{__beat.server.contextPath}/netflow/visitPL"
        },
		{
            text: "访问路径（来源）",
            href: "$!{__beat.server.contextPath}/netflow/visitSource"
        },
        {
            text: "访问路径",
            href: "$!{__beat.server.contextPath}/netflow/transform"
        },
        {
			text: "看板(测试)",
			href: "$!{__beat.server.contextPath}/netflow/test"
		},
		{
				text: "热词TOP30",
				href: "$!{__beat.server.contextPath}/netflow/topSearchWord"
		},
		{
				text: "来源",
				href: "$!{__beat.server.contextPath}/netflow/source"
		},		
		{
				text: "热门城市TOP30",
				href: "$!{__beat.server.contextPath}/netflow/topNCity"
		}]
	},
	{
		text: "收入",
        href: "$!{__beat.server.contextPath}/income/citycate",
        nodes: [
            {
                text: "城市类别收入",
                href: "$!{__beat.server.contextPath}/income/citycate"
            },
            {
                text: "城市类别流量",
                href: "$!{__beat.server.contextPath}/income/netflow"
            },
            {
                text: "流量来源",
                href: "$!{__beat.server.contextPath}/income/netflowSource"
            },

            {text: "客户余额",
             href: "$!{__beat.server.contextPath}/customer/balancecs"
         },

                    {
            text:"KPI-业务线",
            href:"$!{__beat.server.contextPath}/income/kpi/business"
        },
                            {
            text:"KPI-在线产品",
            href:"$!{__beat.server.contextPath}/income/kpi/online"
        },
                                    {
            text:"KPI-在线产品分业务增长",
            href:"$!{__beat.server.contextPath}/income/kpi/businessup"
        }
        ]
	},
	{
            text: "招聘指数",
            href: "$!{__beat.server.contextPath}/zhishu/zhaopin/fengyunbang",
            nodes: [
                {
                    text: "招聘风云榜",
                    href: "$!{__beat.server.contextPath}/zhishu/zhaopin/fengyunbang"
                },   
                {
                    text: "职位薪资趋势图",
                    href: "$!{__beat.server.contextPath}/zhishu/zhaopin/qushi"
                },{
                	text:"职位排行榜",
                	href: "$!{__beat.server.contextPath}/zhishu/zhaopin/position",
                } ,{
                	text:"城市排行榜",
                	href: "$!{__beat.server.contextPath}/zhishu/zhaopin/city",
                }              
            ]
        },
	{
		text: "数据文档"
	}
	
	]
});
    $('#tree').on('nodeSelected', function (event, node) {
        var href= node.href;
		console.log(href);
        if(href){
            $('#frame_container').attr('src',href);
        }
    });
</script>
</body>
</html>
